//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.rjxy.demo.pojo;

import java.io.Serializable;
import java.util.Objects;

public class HeroInfo implements Serializable {
    private Integer hid;
    private String hname;
    private String position;
    private String difficulty;
    private String gender;
    private String backgroundStory;

    public HeroInfo() {
    }

    public HeroInfo(Integer hid, String hname, String position, String difficulty, String gender, String backgroundStory) {
        this.hid = hid;
        this.hname = hname;
        this.position = position;
        this.difficulty = difficulty;
        this.gender = gender;
        this.backgroundStory = backgroundStory;
    }

    public String toString() {
        return "HeroInfo{hid=" + this.hid + ", hname='" + this.hname + '\'' + ", position='" + this.position + '\'' + ", difficulty='" + this.difficulty + '\'' + ", gender='" + this.gender + '\'' + ", backgroundStory='" + this.backgroundStory + '\'' + '}';
    }

    public Integer getHid() {
        return this.hid;
    }

    public void setHid(Integer hid) {
        this.hid = hid;
    }

    public String getHname() {
        return this.hname;
    }

    public void setHname(String hname) {
        this.hname = hname;
    }

    public String getPosition() {
        return this.position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getDifficulty() {
        return this.difficulty;
    }

    public void setDifficulty(String difficulty) {
        this.difficulty = difficulty;
    }

    public String getGender() {
        return this.gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getBackgroundStory() {
        return this.backgroundStory;
    }

    public void setBackgroundStory(String backgroundStory) {
        this.backgroundStory = backgroundStory;
    }

    public boolean equals(Object o) {
        if (this == o) {
            return true;
        } else if (o != null && this.getClass() == o.getClass()) {
            HeroInfo heroInfo = (HeroInfo)o;
            return Objects.equals(this.hid, heroInfo.hid) && Objects.equals(this.hname, heroInfo.hname) && Objects.equals(this.position, heroInfo.position) && Objects.equals(this.difficulty, heroInfo.difficulty) && Objects.equals(this.gender, heroInfo.gender) && Objects.equals(this.backgroundStory, heroInfo.backgroundStory);
        } else {
            return false;
        }
    }

    public int hashCode() {
        return Objects.hash(new Object[]{this.hid, this.hname, this.position, this.difficulty, this.gender, this.backgroundStory});
    }
}
